package com.lq.ecoldchain.ui.mine.carInfo

import android.app.Activity
import android.view.View
import com.alibaba.android.arouter.launcher.ARouter
import com.lq.ecoldchain.base.BaseNavigator
import com.lq.ecoldchain.base.viewdelegate.BaseViewDelegate

/*
*2018/12/28 0028  13:11
*function by lq
*/
class CarInfoDelegate(val viewModel:CarInfoViewModel):BaseViewDelegate(){

    fun carType(view:View){
        ARouter.getInstance().build(BaseNavigator.carType).navigation((view.context)as Activity,viewModel.carTypeRequestCode)
    }

    fun commit() = viewModel.commit()
}